package oop.ex3.crosswords;

/**
 * File name: OverLapEntry.java
 * Description: represents an Entry and it's number of overlaps 
 * @author yossavi dawn16889
 */
public class OverLapEntry {
	
	private CrosswordEntry entry;
	private int overlap;
	
	/**
	 * constructor
	 * @param entry - the entry 
	 * @param overlap - number of overlaps
	 */
	public OverLapEntry(CrosswordEntry entry, int overlap) {
		super();
		this.entry = entry;
		this.overlap = overlap;
	}
	
	/**
	 * returns overlap
	 * @return overlap
	 */
	public int getOverlap() {
		return overlap;
	}
	
	/**
	 * returns Entry
	 * @return Entry
	 */
	public CrosswordEntry getEntry() {
		return entry;
	}
	
	
	
}
